package com.hamizhong.iflowers.db.dao.hibernate;

import java.util.List;

import com.hamizhong.iflowers.db.dao.base.MyBaseDao;
import com.hamizhong.iflowers.db.entity.Goods;

public interface IGoodsDao extends MyBaseDao<Goods, Integer> {

	List<Goods> findAll(Integer pageNum, int pageSize);

	int findTotalGoodsCnt();

	List<Goods> findGoodsByBarginFlag(Integer pageNum, Integer pageSize);

	List<Goods> finByType(Integer pageNum, Integer pageSize, String varietyId, String colorId, String purposeId, String festivalId, String targetId, Integer flowerFloridId, Integer flowerCountId);

	List<Goods> finByCondition(Integer pageNum, Integer pageSize, String searchCondition);

	List<Goods> findByIsBargin(Integer pageNum, int pageSize, Integer isBargin);

	int findTotalGoodsCntByIsBargin(Integer isBargin);

}
